home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / util / cli / WBLaunch.lha / Source / COMPILING next >
Text File  |  1999-01-12  |  2KB  |  37 lines

  1. Compiling WBLaunch
  2. ==================
  3.  
  4. If you want to recompile WBLaunch, you will need the following:
  5.  
  6. a) A C compiler, capable of processing ANSI C.  The makefile was
  7.    written for VBCC; the source will compile with VBCC or DICE, and
  8.    will most likely need modification to work with other C compilers.
  9.  
  10. b) The official Amiga includes, for OS 3.0 (release 39.x).
  11.  
  12. c) The wbstart.library development files.  Should be available from
  13.    Aminet.  You will need to have a working wbstart link library for
  14.    your C compiler.  This may well come with the development files,
  15.    or can be built from the supplied FD file.  I forget which :-)
  16.  
  17. d) A copy of GNU make.  Feel free to write your own makefile if you
  18.    want to use a different make utility (e.g. DMake).
  19.  
  20. Once you've got that lot, cd into the source directory and type make.
  21. Watch it compile (or not).
  22.  
  23. The supplied makefile sets the pure bit on the compiled binary.
  24. WBLaunch is written in such a way that it is pure (the only globals
  25. are library bases, used for referencing only; all library opens,
  26. closes etc are done on local copies).  Nevertheless, a really grotty C
  27. compiler might not produce pure code.  If this happens to you, either
  28. unset the pure bit, or change to VBCC.
  29.  
  30. Don't link with your C compiler's startup code.  The supplied source
  31. file "startup30shell.c" is simple startup code for a CLI based program
  32. running under OS 3.x.  Your C compiler's standard startup code is most
  33. likely "catchall" code, which initializes a standard environment, but
  34. which is considerably bigger than WBLaunch needs.  Also, it may not be
  35. pure.  The supplied VBCC makefile, of course, ensures that VBCC's
  36. startup code is not used.
  37.